package com.site.wisdom_construction.service.safetyModule;

import com.site.wisdom_construction.dao.safetyModule.SafetyInspectionDao;
import com.site.wisdom_construction.entity.safetyModule.SafetyInspection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/13
 * @Description
 */
@Service
public class SafetyInspectionService implements SafetyInspectionDao {
    @Autowired
    private SafetyInspectionDao safetyInspectionDao;

    @Override
    public int insertSafetyInspection(Map map) {
        return safetyInspectionDao.insertSafetyInspection(map);
    }

    @Override
    public int deleteSafetyInspection(Map map) {
        return safetyInspectionDao.deleteSafetyInspection(map);
    }

    @Override
    public int updateSafetyInspection(Map map) {
        return safetyInspectionDao.updateSafetyInspection(map);
    }

    @Override
    public List<SafetyInspection> findSafetyInspectionByPage(Map map) {
        return safetyInspectionDao.findSafetyInspectionByPage(map);
    }

    @Override
    public long Total(Map map) {
        return safetyInspectionDao.Total(map);
    }

    @Override
    public List<SafetyInspection> selectSafetyInspection(Map map) {
        return safetyInspectionDao.selectSafetyInspection(map);
    }

    @Override
    public SafetyInspection findSafetyInspectionById(Map map) {
        return safetyInspectionDao.findSafetyInspectionById(map);
    }
}
